package com.hongxin.nw.netty.context;

import io.netty.channel.ChannelHandlerContext;

public class ChannelContext {
   private State state;
   private ChannelHandlerContext ctx;//通道ID
 
   public ChannelContext(){
      state = null;
   }

   public ChannelHandlerContext getCtx() {
      return ctx;
   }

   public void setCtx(ChannelHandlerContext ctx) {
      this.ctx = ctx;
   }

   public void setState(State state){
      this.state = state;     
   }
 
   public State getState(){
      return state;
   }
}